import axios from './index'

// 获取域名请求品牌
const getBrandInfo = function (domainName) {
  console.log('domainName', domainName)
  return axios.get('brandPersonalInfo/findBrandInfo/' + domainName)
}
const getSms = function (phoneNumber, brandId) {
  return axios.get('sms/generalSms/' + phoneNumber + '/' + brandId)
}
const toLogin = function (params) {
  return axios.post('user/login', params)
}
const toRegister = function (params) {
  return axios.post('user/register', params)
}
const toApply = function (params) {
  return axios.post('user/apply', params)
}
const toSubTask = function (taskNo) {
  return axios.post('taskInfo/taskAchievement', taskNo)
}
export {
  getBrandInfo,
  getSms,
  toLogin,
  toRegister,
  toApply,
  toSubTask
}
